package com.js.admin.mapper;

import com.js.admin.entity.BaseResourceAuthority;
import com.js.common.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

/**
 * @author： ygl
 * @date： 2018/11/02-14:40
 * @Description：
*/
public interface BaseResourceAuthorityMapper extends BaseMapper<BaseResourceAuthority> {

    @Delete("delete from base_resource_authority where authority_id = #{authorityId} and resource_type = #{resourceType} and type = #{type}")
    void deleteByAuthorityIdAndResourceType(@Param("authorityId")String authorityId, @Param("resourceType") String resourceType, @Param("type") String type);

}